package com.atguigu.gulimall.product.service;

import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.AttrEntity;
import com.atguigu.gulimall.product.entity.AttrGroupEntity;
import com.atguigu.gulimall.product.vo.AttrAttrGroupRelationVo;
import com.atguigu.gulimall.product.vo.AttrGroupWithAttrsVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 * 属性分组
 *
 * @author liuyong
 * @email sunlightcs@gmail.com
 * @date 2020-07-06 14:12:57
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    PageUtils queryPageByCategoryId(Map<String, Object> params, Long catelogId);

    List<AttrEntity> attrAttrGrRelation(Long attrGroupId);

    PageUtils attrAttrGroupNoRelation(Long attrGroupId,Map<String,Object> params);

    void deleteAttrRelation(AttrAttrGroupRelationVo[] relationVo);

    void removeGroup(List<Long> attrGroupIds);


    List<AttrGroupWithAttrsVo> getAttrGroupByCatelogId(Long catelogId);
}

